package edu.upc.viajes.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import edu.upc.viajes.domain.Reservacion;
import javax.persistence.ManyToOne;
import edu.upc.viajes.domain.Usuario;

@RooJavaBean
@RooToString
@RooEntity
public class EstadoReservacion {

    @NotNull
    @Size(max = 10)
    private String estres_cod;

    @NotNull
    @Size(max = 50)
    private String estres_reserv;

    @NotNull
    @Size(max = 50)
    private String estres_observ;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date estres_fech;

    @ManyToOne
    private Reservacion Reservacion;

    @ManyToOne
    private Usuario Usuario;
}
